package com.cs2.volunteerpostbackend.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.intellij.lang.annotations.Identifier;

@TableName("user")
@Data
public class User implements java.io.Serializable{
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @TableField("account")
    private String account;
    @TableField("username")
    private String username;
    @TableField("password")
    private String password;
    @TableField("role")
    private Integer role;  // 0-用户 1-管理员
    @TableField("phone")
    private String phone;  // 用户特有字段
    @TableField("location")
    private String location;  // 用户特有字段
    @TableField("create_time")
    private Long createTime;
}
